#define _CRT_SECURE_NO_WARNINGS 1
float fun(int a[], int n, int* max, int* min)
{
    float agv = 0;
    *max = a[0];
    *min = a[0];
    int i = 0;
    float sum = (float)a[0];
    for (i = 1;i < n;i++)
    {
        if (a[i] > *max)
            *max = a[i];
        if (a[i] < *min)
            *min = a[i];
        sum += a[i];
    }
    agv = sum / (float)n;
    return agv;
}
int main()
{
	return 0;
}